package com.nimitz.factorEquipment.service;


import com.nimitz.factorEquipment.domain.*;

import java.util.List;

public interface EquipmentService {
    List<Equipment> getAllEquipments(Equipment equipment); //获取所有设备


    void addEquipment(Equipment equipment);//添加设备

    Equipment selectEquipmentById(Long id); //根据id查询设备

    void updateEquipment(Equipment equipment); // 修改设备
    void deleteEquipment(Long id); // 删除公告

//    List<EquipmentDetail> getAllEquipmentDetails(String equipmentTypeId); //获取所有设备>


    // 新增方法：根据equipment_type_id查询设备名称和关联的factor_id和value
    List<EquipmentDetail> getEquipmentDetailsId(Long equipmentId);

    //查询所有设备类型名称
    List<EquipmentType> selectAllEquipmentTypes();

    //查询所有断面名称
    List<Section> selectAllSections();

    //查询省区域名称
    List<Area> getProvinces();
    //根据省id查询市
    List<Area> getCitiesByProvinceId(Long provinceId);
    //根据市id查询区
    List<Area> getDistrictsByCityId(Long cityId);

    //根据区id查询河流
    List<River> getRiversByDistrictId(Long areaId);


    //根据河流id查询断面
    List<Section> getSectionsByRiverId(Long riverId);
}
